const login = [
    {
        path: '/',
        redirect: '/login' // 根路径重定向到登录页
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/login.vue')
    },
    // 首页
    {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/home/home.vue')
    },
    //  通讯录
{
        path: '/addrBook',
        name: 'AddrBook',
        component: () => import('@/views/addrBook/addrBook.vue')
    },
    // 发现
{
        path: '/discover',
        name: 'Discover',
        component: () => import('@/views/discover/discover.vue')
    },
    // 我的
{
        path: '/mine',
        name: 'Mine',
        component: () => import('@/views/mine/mine.vue')
    },
]

export default login